package com.honey.mybatis.generator.dao;

import com.honey.core.types.FullyQualifiedJavaType;
import com.honey.mybatis.generator.mappper.MapperConstant;

public class DaoConstant {
	
	public static final FullyQualifiedJavaType SQL_SESSION_PACKAGE= new FullyQualifiedJavaType("org.apache.ibatis.session.SqlSession");
	
	public static final String SQL_SESSION_NAME="session";
	
	//public static final String PAGE="Page";
	
	//public static final String PAGE_VARIABLE_NAME="page";
	
	public static final String CONDITION_VARIABLE_NAME="search" ;
	
	public static final String MAPPER_RECORD="record";
	
	/** base dao */
		
	public static final FullyQualifiedJavaType ROW_BOUNDS = new FullyQualifiedJavaType("org.apache.ibatis.session.RowBounds");
	
	public static final FullyQualifiedJavaType SQL_RUNNER = new FullyQualifiedJavaType("org.apache.ibatis.jdbc.SqlRunner");
	
	public static final String SELECT_LIST_METHOD_NAME="selectList";
	
	public static final String SELECT_ONE_METHOD_NAME="selectOne";
	
	public static final String SELECT_ONE_FOR_SQL_METHOD_NAME="selectOneForSql";
	
	public static final String SELECT_LIST_FOR_SQL_METHOD_NAME="selectListForSql";
	
	public static final String INSERT_METHOD_NAME="insert";
	
	public static final String UPDATE_METHOD_NAME="update";
	
	public static final String DELETE_METHOD_NAME="delete";
	
	
	/** 映射文件命名空间属性的名称 */
	public static final String MAPPER_NAME_SPACE_FIELD_NAME = "NAME_SPACE";
	
	public static final String SELECT_COUNT_FIELD_NAME="SELECT_COUNT";
	
	public static final String SELECT_COUNT_MAPPER_NAME=MAPPER_NAME_SPACE_FIELD_NAME +" + \""+MapperConstant.SELECT_COUNT_MAPPER_ID+"\"";

	
	public static final String SELECT_ALL_FIELD_NAME="SELECT_ALL";
	
	public static final String SELECT_ALL_MAPPER_NAME=MAPPER_NAME_SPACE_FIELD_NAME +" + \""+ MapperConstant.SELECT_BY_DYNAMIC_MAPPER_ID+"\"";


	public static final String SELECT_BY_PRIMARYKEY_FIELD_NAME="SELECT_BY_PRIMARYKEY";
	
	public static final String SELECT_BY_PRIMARYKEY_MAPPER_NAME=MAPPER_NAME_SPACE_FIELD_NAME +" + \""+MapperConstant.SELECT_BY_PRIMARY_KEY_MAPPER_ID+"\"";

	
	public static final String SELECT_BY_DYNAMIC_FIELD_NAME="SELECT_BY_DYNAMIC";
	
	public static final String SELECT_BY_DYNAMIC_MAPPER_NAME=MAPPER_NAME_SPACE_FIELD_NAME +" + \""+ MapperConstant.SELECT_BY_DYNAMIC_MAPPER_ID+"\"";

	
	public static final String DELETE_BY_PRIMARYKEY_FIELD_NAME="DELETE_BY_PRIMARYKEY";
	
	public static final String DELETE_BY_PRIMARYKEY_MAPPER_NAME=MAPPER_NAME_SPACE_FIELD_NAME +" + \""+MapperConstant.DELETE_BY_PRIMARY_KEY_MAPPER_ID+"\"";

	public static final String VIRTUAL_DELETE_BY_PRIMARYKEY_FIELD_NAME="VIRTUAL_DELETE_BY_PRIMARYKEY";
	
	public static final String VIRTUAL_DELETE_BY_PRIMARYKEY_MAPPER_NAME=MAPPER_NAME_SPACE_FIELD_NAME +" + \""+MapperConstant.VIRTUAL_DELETE_BY_PRIMARY_KEY_MAPPER_ID+"\"";

	
	
	public static final String DELETE_BY_DYNAMIC_FIELD_NAME="DELETE_BY_DYNAMIC";
	
	public static final String DELETE_BY_DYNAMIC_MAPPER_NAME=MAPPER_NAME_SPACE_FIELD_NAME +" + \""+MapperConstant.DELETE_BY_DYNAMIC_MAPPER_ID+"\"";
	
	public static final String VIRTUAL_DELETE_BY_DYNAMIC_FIELD_NAME="VIRTUAL_DELETE_BY_DYNAMIC";
	
	public static final String VIRTUAL_DELETE_BY_DYNAMIC_MAPPER_NAME=MAPPER_NAME_SPACE_FIELD_NAME +" + \""+MapperConstant.VIRTUAL_DELETE_BY_DYNAMIC_MAPPER_ID+"\"";
	
	
	
	public static final String INSERT_FIELD_NAME="INSERT";
	
	public static final String INSERT_MAPPER_NAME=MAPPER_NAME_SPACE_FIELD_NAME +" + \""+MapperConstant.INSERT_MAPPER_ID+"\"";
	
	public static final String INSERT_SELECTIVE_FIELD_NAME="INSERT_SELECTIVE";
	
	public static final String INSERT_SELECTIVE_MAPPER_NAME=MAPPER_NAME_SPACE_FIELD_NAME +" + \""+MapperConstant.INSERT_SELECTIVE_MAPPER_ID+"\"";
	
	
	public static final String UPDATE_BY_PRIMARYKEY_FIELD_NAME="UPDATE_BY_PRIMARYKEY";
	
	public static final String UPDATE_BY_PRIMARYKEY_MAPPER_NAME=MAPPER_NAME_SPACE_FIELD_NAME +" + \""+MapperConstant.UPDATE_BY_PRIMARY_KEY_MAPPER_ID+"\"";
	
	
	public static final String UPDATE_BY_PRIMARYKEY_SELECTIVE_FIELD_NAME="UPDATE_BY_PRIMARYKEY_SELECTIVE";
	
	public static final String UPDATE_BY_PRIMARYKEY_SELECTIVE_MAPPER_NAME=MAPPER_NAME_SPACE_FIELD_NAME +" + \""+MapperConstant.UPDATE_BY_PRIMARY_KEY_SELECTIVE_MAPPER_ID+"\"";
	
	
	public static final String UPDATE_BY_DYNAMIC_SELECTIVE_FIELD_NAME="UPDATE_BY_DYNAMIC_SELECTIVE";
	
	public static final String UPDATE_BY_DYNAMIC_SELECTIVE_MAPPER_NAME=MAPPER_NAME_SPACE_FIELD_NAME +" + \""+MapperConstant.UPDATE_BY_DYNAMIC_SELECTIVE_MAPPER_ID+"\"";


	public static final String UPDATE_BY_DYNAMIC_FIELD_NAME="UPDATE_BY_DYNAMIC";
	
	public static final String UPDATE_BY_DYNAMIC_MAPPER_NAME=MAPPER_NAME_SPACE_FIELD_NAME +" + \""+MapperConstant.UPDATE_BY_DYNAMIC_MAPPER_ID+"\"";

	
	public static final String EXISTS_FIELD_NAME="EXISTS";
	
	public static final String EXISTS_MAPPER_NAME=MAPPER_NAME_SPACE_FIELD_NAME +" + \""+MapperConstant.EXISTS_MAPPER_ID+"\"";

	
}
